package dk.pun.aot.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class SystemMessageUpdatedEvent extends GwtEvent<SystemMessageUpdatedEventHandler> {

	public static Type<SystemMessageUpdatedEventHandler> TYPE = new Type<SystemMessageUpdatedEventHandler>();

	private final String message;

	public SystemMessageUpdatedEvent(String message) {
		this.message = message;
	}

	public String getMessage() {
		return this.message;
	}

	@Override
	public Type<SystemMessageUpdatedEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(SystemMessageUpdatedEventHandler handler) {
		handler.onSystemMessageUpdated(this);
	}

}
